package org.faradel.pharmapp.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.stereotype.Component;

/**
 * The persistent class for the Patient database table.
 * 
 */
@Entity
@Table(name = "Patient")
@Component
public class Patient implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "patient_id")
    private int patientId;

    private int age;

    private Date dob;

    @Column(name = "first_name")
    private String firstName;

    private String insurance;

    @Column(name = "last_modified")
    private Date lastModified;

    @Column(name = "last_name")
    private String lastName;

    @Column(name = "middle_initial")
    private String middleInitial;

    private String physician;

    @Column(name = "provider_id")
    private int providerId;

    @Column(name = "user_last_modified")
    private int userLastModified;

    public Patient()
    {
    }

    public int getPatientId()
    {
        return this.patientId;
    }

    public void setPatientId(int patient_id)
    {
        this.patientId = patient_id;
    }

    public int getAge()
    {
        return this.age;
    }

    public void setAge(int age)
    {
        this.age = age;
    }

    public Date getDob()
    {
        return this.dob;
    }

    public void setDob(Date dob)
    {
        this.dob = dob;
    }

    public String getFirstName()
    {
        return this.firstName;
    }

    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }

    public String getInsurance()
    {
        return this.insurance;
    }

    public void setInsurance(String insurance)
    {
        this.insurance = insurance;
    }

    public Date getLastModified()
    {
        return this.lastModified;
    }

    public void setLastModified(Date lastModified)
    {
        this.lastModified = lastModified;
    }

    public String getLastName()
    {
        return this.lastName;
    }

    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }

    public String getMiddleInitial()
    {
        return this.middleInitial;
    }

    public void setMiddleInitial(String middleInitial)
    {
        this.middleInitial = middleInitial;
    }

    public String getPhysician()
    {
        return this.physician;
    }

    public void setPhysician(String physician)
    {
        this.physician = physician;
    }

    public int getProviderId()
    {
        return this.providerId;
    }

    public void setProviderId(int provider_id)
    {
        this.providerId = provider_id;
    }

    public int getUserLastModified()
    {
        return this.userLastModified;
    }

    public void setUserLastModified(int userLastModified)
    {
        this.userLastModified = userLastModified;
    }

}